class DoctorDiseaseEntity {
  int _code;
  List<Data> _data;
  String _message;

  int get code => _code;

  List<Data> get data => _data;

  String get message => _message;

  DoctorDiseaseEntity({int code, List<Data> data, String message}) {
    _code = code;
    _data = data;
    _message = message;
  }

  DoctorDiseaseEntity.fromJson(dynamic json) {
    _code = json["code"];
    if (json["data"] != null) {
      _data = [];
      json["data"].forEach((v) {
        _data.add(Data.fromJson(v));
      });
    }
    _message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["code"] = _code;
    if (_data != null) {
      map["data"] = _data.map((v) => v.toJson()).toList();
    }
    map["message"] = _message;
    return map;
  }
}

class Data {
  String diseaseName = "";

  Data({this.diseaseName});

  Data.fromJson(dynamic json) {
    diseaseName = json["diseaseName"];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> map = Map();
    map["diseaseName"] = diseaseName;
    return map;
  }
}
